{% load staticfiles %}
<table class="table table-bordered">
    <thead>
        <tr>
            <th style="width: 26%">评审标准</th>
            <th style="width: 30%">评审要点</th>
            <th>参考资料</th>
        </tr>
    </thead>
    <tbody>
        <tr>  <td>   <strong>{{ clause.name }}</strong> {{ clause.desc }}  </td>
            <td><strong>【C】</strong>
                <ol>
                    {% for c in keys_C %}
                    <li>{{ c.desc }}</li>
                    {% endfor %}
                </ol><strong>【B】</strong>符合“C”，并
                <ol>
                    {% for b in keys_B %}
                    <li>{{ b.desc }}</li>
                    {% endfor %}
                </ol>
                <strong>【A】</strong>符合“B”，并
                <ol>
                  {% for a in keys_A %}
                    <li>{{ a.desc }}</li>
                    {% endfor %}
                </ol>
            </td>
            <td class="td-rels">
<ul id="myTab" class="nav nav-tabs">
{#<li class="active"><a href="#ref1-{{ clause.id }}" data-toggle="tab"> 参考目录</a></li>#}
<li  class="active"><a href="#ref4-{{ clause.id }}"  data-toggle="tab">查阅资料</a></li>
<li><a href="#ref5-{{ clause.id }}"  data-toggle="tab">访谈与追踪</a></li>
<li><a href="#ref6-{{ clause.id }}"  data-toggle="tab">实地查看与考核</a></li>

<li><a href="#ref2-{{ clause.id }}" data-toggle="tab">模板列表</a></li>
<li ><a href="#ref3-{{ clause.id }}"  data-toggle="tab">要点说明</a></li>

</ul>
<div id="myTabContent" class="tab-content">
{#<div class="tab-pane fade in active" id="ref1-{{ clause.id }}">#}
{#{% if ref_A.desc  %}#}
{#{{ ref_A.desc|safe }}#}
{#{% else %}#}
{#<p>参考目录未编辑</p>#}
{#{% endif %}#}
{#{% if is_superuser %}#}
{#<input id="pwdBtnID" type="button" class="btn btn-primary pull-left " onclick="doUpdate({{ clause.id }},'A')" value="编辑">#}
{#{% endif %}#}
{#</div>#}
<div class="tab-pane fade" id="ref2-{{ clause.id }}">
{% if ref_B.desc  %}
{{ ref_B.desc|safe }}
{% else %}
<p>模板列表未编辑</p>
{% endif %}
{% if is_superuser %}
<input id="pwdBtnID" type="button" class="btn btn-primary pull-left "  onclick="doUpdate({{ clause.id }},'B')" value="编辑">
{% endif %}
</div>
<div class="tab-pane fade" id="ref3-{{ clause.id }}">
        {% if ref_C.desc  %}
{{ ref_C.desc|safe }}
{% else %}
<p>要点说明未编辑</p>
{% endif %}
{% if is_superuser %}
<input id="pwdBtnID" type="button" class="btn btn-primary pull-left "  onclick="doUpdate({{ clause.id }},'C')" value="编辑">
{% endif %}

</div>
<div class="tab-pane fade  in active" id="ref4-{{ clause.id }}">
           <strong>【C】</strong>
                <ol>
                    {% for c in keys_C %}
                    <li>{{ c.document |default_if_none:"无"}}</li>
                    {% endfor %}
                </ol><strong>【B】</strong>
                <ol>
                    {% for b in keys_B %}
                    <li>{{ b.document |default_if_none:"无"}}</li>
                    {% endfor %}
                </ol>
                <strong>【A】</strong>
                <ol>
                  {% for a in keys_A %}
                    <li>{{ a.document |default_if_none:"无"}}</li>
                    {% endfor %}
                </ol>

</div>
<div class="tab-pane fade" id="ref5-{{ clause.id }}">
           <strong>【C】</strong>
                <ol>
                    {% for c in keys_C %}
                    <li>{{ c.interview |default_if_none:"无"}}</li>
                    {% endfor %}
                </ol><strong>【B】</strong>
                <ol>
                    {% for b in keys_B %}
                    <li>{{ b.interview |default_if_none:"无"}}</li>
                    {% endfor %}
                </ol>
                <strong>【A】</strong>
                <ol>
                  {% for a in keys_A %}
                    <li>{{ a.interview |default_if_none:"无"}}</li>
                    {% endfor %}
                </ol>
</div>
<div class="tab-pane fade" id="ref6-{{ clause.id }}">
           <strong>【C】</strong>
                <ol>
                    {% for c in keys_C %}
                    <li>{{ c.inspect |default_if_none:"无"}}</li>
                    {% endfor %}
                </ol><strong>【B】</strong>
                <ol>
                    {% for b in keys_B %}
                    <li>{{ b.inspect |default_if_none:"无"}}</li>
                    {% endfor %}
                </ol>
                <strong>【A】</strong>
                <ol>
                  {% for a in keys_A %}
                    <li>{{ a.inspect |default_if_none:"无"}}</li>
                    {% endfor %}
                </ol>
</div>
{#<div class="tab-pane fade" id="ref4-{{ clause.id }}">#}
{#                {% if ref_D.desc  %}#}
{#{{ ref_D.desc|safe }}#}
{#{% else %}#}
{#<p>法律法规未编辑 </p>#}
{#{% endif %}#}
{#{% if is_superuser %}#}
{#<input id="pwdBtnID" type="button" class="btn btn-primary pull-left "  onclick="doUpdate({{ clause.id }},'D')" value="编辑">#}
{#{% endif %}#}
{#</div>#}
</div>
</td>
</tr>
</tbody>
</table>
